
var initEffect = function()
{
    $(".listtable tr").hover(
        function(){
            $(this).addClass("highlight");
        },
        function(){
            $(this).removeClass("highlight");
        })
    EllipsisTips.init('ellipsis');
}



EllipsisTips = function () {
    var stripTagsRE = /<\/?[^>]+>/gi;
    
    function stripTags(v) {
        return !v ? v : String(v).replace(stripTagsRE, "");
    }

    return {
        stripTags: stripTags,
        init: function (cls) {
            $('.' + cls).each(function () {
                $(this).attr('title', stripTags(this.innerHTML));
                $(this).tooltip({
            		tip: '#tooltip',
            		effect: 'fade',
            		fadeOutSpeed: 100,
            		predelay: 400,
            		position: "bottom right",
            		offset: [5, -80]
        	   });
            });
        }
    }
}();